package com.cheney.common.sensitive.strategy;

import org.springframework.stereotype.Component;

@Component("mySensitiveStrategy")
public class MySensitiveStrategy implements SensitiveStrategy {
    @Override
    public String category() {
        return "name";
    }

    @Override
    public int retainPrefixCount() {
        return 1;
    }

    @Override
    public int retainSuffixCount() {
        return 1;
    }

    @Override
    public char replaceChar() {
        return '$';
    }
}
